﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoCalculator.aspx.cs" Inherits="DemoCalculator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 99px;
        }
        .style2
        {
        }
        .style3
        {
            width: 228px;
        }
        .style4
        {
            height: 23px;
            width: 128px;
        }
        .style5
        {
            height: 23px;
            width: 85px;
        }
        .style6
        {
            width: 85px;
        }
        .style7
        {
            width: 128px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Larger" Text="Tính Hóa Đơn"></asp:Label>
        <br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                <table id="table1" style="width: 63%; height: 82px;">
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label2" runat="server" Text="Mã Hàng:"></asp:Label>
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="MaHangTextBox" runat="server" Width="191px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label3" runat="server" Text="Số lượng"></asp:Label>
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="SoluongTextBox" runat="server" Width="191px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label4" runat="server" Text="Giá"></asp:Label>
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="GiaTextBox" runat="server" Width="191px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label5" runat="server" Text="Tổng tiền"></asp:Label>
                        </td>
                        
                        <td class="style3">
                            <asp:TextBox ID="tongtienTextBox" runat="server" Width="191px" ReadOnly="True"></asp:TextBox>
                            &nbsp;<asp:Button ID="VButton" runat="server" Text="V" Width="24px" OnClick="VButton_Click" />
                        </td>
                        <td>
                            <table id="table2" runat="server" style="border: medium solid #000000; width: auto;"
                                >
                                <tr>
                                    <td class="style5">
                                        <asp:Label ID="Label6" runat="server" Text="Số thứ nhất"></asp:Label>
                                    </td>
                                    <td class="style4">
                                        <asp:TextBox ID="Sothu1TextBox" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style6">
                                        <asp:Label ID="Label7" runat="server" Text="Số thứ hai"></asp:Label>
                                    </td>
                                    <td class="style3">
                                        <asp:TextBox ID="Sothu2TextBox" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style6">
                                        <asp:Label ID="Label8" runat="server" Text="Kết quả"></asp:Label>
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="KQTextBox" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style6">
                                        &nbsp;
                                    </td>
                                    <td class="style7">
                                        &nbsp; &nbsp; &nbsp; &nbsp;<asp:RadioButtonList ID="RadioButtonList1" runat="server"
                                            AutoPostBack="True" RepeatDirection="Horizontal">
                                            <asp:ListItem Value="+">+</asp:ListItem>
                                            <asp:ListItem Value="-">-</asp:ListItem>
                                            <asp:ListItem Value="*">*</asp:ListItem>
                                            <asp:ListItem Value="/">/</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style6">
                                        &nbsp;
                                    </td>
                                    <td class="style7">
                                        <asp:Button ID="TinhButton" runat="server" Text="Tính" Width="42px" OnClick="TinhButton_Click" />
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:Button ID="CopyButton" runat="server" Text="Copy" OnClick="CopyButton_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;
                        </td>
                        <td class="style2">
                            <asp:Button ID="GhinhanButton" runat="server" Text="Ghi nhận" Width="93px" OnClick="GhinhanButton_Click" />
                        </td>
                    </tr>
                </table>
            
    </div>
    <asp:ListBox ID="ShowTextbox" runat="server" Height="108px" Width="489px" Enabled="False">
    </asp:ListBox>
    
    </form>
</body>
</html>
